package com.xdl.flytest.util.docker;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Auther: 80736
 * @Date: 2019/1/31 18:27
 * @Description: docker环境配置
 */

@Component
public class DockerEnvironmentConfig {

    // 自定义镜像名称
    public static String IMAGE_NAME;
    // 创建容器名称
    public static String CONTAINER_NAME;
    // 本地测试报告路径
    public static String LOCAL_REPORT_SAVED_PATH;
    // json文件路径
    public static String JSON_FILE_PATH;

    public static String getImageName() {
        return IMAGE_NAME;
    }

    @Value(value = "${runner.imageName}")
    public void setImageName(String imageName) {
        IMAGE_NAME = imageName;
    }

    public static String getContainerName() {
        return CONTAINER_NAME;
    }

    @Value(value = "${runner.containerName}")
    public void setContainerName(String containerName) {
        CONTAINER_NAME = containerName;
    }

    public static String getLocalReportSavedPath() {
        return LOCAL_REPORT_SAVED_PATH;
    }

    @Value(value = "${runner.reportDirSavedPath}")
    public void setLocalReportSavedPath(String localReportSavedPath) {
        LOCAL_REPORT_SAVED_PATH = localReportSavedPath;
    }

    public static String getJsonFilePath() {
        return JSON_FILE_PATH;
    }

    @Value(value = "${runner.jsonFilePath}")
    public void setJsonFilePath(String jsonFilePath) {
        JSON_FILE_PATH = jsonFilePath;
    }
}
